package com.matrix.java.chap_05.example;

/*
    预测未来学费
 */
public class Case5_10 {
    public static void main(String[] args) {
        int tuitionFee = 10000;
        int year = 0;
        do {
            year++;
            tuitionFee *= 1.07;
        } while (tuitionFee < 20000);
        System.out.println(year);
    }

}
